﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class HP : MonoBehaviour {
    GameObject hero;
    private Slider hp;
	// Use this for initialization
	void Start () {
        hp = GetComponent<Slider>();
        hero = GameObject.Find("Garrosh");
	}
	
	// Update is called once per frame
	void Update () {
        hp.value = ((float)hero.GetComponent<sc>().Health)/100.0f;
    }
}
